import Vue from 'vue'
import VueRouter from 'vue-router'
import Axios01 from "@/views/Axios01";
import CarView from "@/views/CarView";
import SaveCarView from "@/views/SaveCarView";
import Axios02 from "@/views/Axios02";

Vue.use(VueRouter)

const routes = [
  { path:'/axios01', component: Axios01 },
  { path:'/axios02', component: Axios02 },
  { path:'/car', component: CarView },
  { path:'/car/save', component: SaveCarView }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
